/*
    bind
*/
#include <iostream>
#include <string>
#include <functional>

void Print(std::string str)
{
    std::cout << str << std::endl;
}
void Print1(std::string str, int num)
{
    std::cout << str << " " << num << std::endl;
}
int main()
{
    Print("hahaha");

    auto func = std::bind(Print, "hehehehe");
    func();
    // ？为什么感觉更麻烦了

    auto func1 = std::bind(Print1, "xixixi", std::placeholders::_1);
    func1(10);
    

    
    return 0;
}